import http from "../utils/request"

// 获取学员登入日志
export let getloginlog = () =>http.get("/getloginlog?page=1&count=15")

// 获取学员信息
export let getstuList = (page=1,count=10,classes='') => http.get("/students/getstulist",{
    params:{
        page,
        count,
        class:classes
    }
})

// 搜索学员
export let searchStuListApi = (key='',count='',page=1) => http.get("/students/searchstu",{
    params:{
        key,
        count,
        page
    }
})

// 添加学员
export let addStuApi = param => http.post("/students/addstu",param)

// 删除学员
export let deleteStuApi = sId => http.get('/students/delstu',{
    params:{
        sId
    }

})

// 修改信息
export const updateStuApi = param => http.post('/students/updatestu', param)
